/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.star.modules.sys.entity;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 浮窗信息Entity
 * @author L
 * @version 2019-03-12
 */
@Table(name="${_prefix}float_win", alias="a", columns={
		@Column(name="id", attrName="id", label="用户ID", isPK=true),
		@Column(name="addr", attrName="addr", label="地址"),
		@Column(name="email", attrName="email", label="邮箱"),
		@Column(name="wx_no", attrName="wxNo", label="微信号"),
		@Column(name="phone", attrName="phone", label="联系号码"),
		@Column(name="wx_code", attrName="wxCode", label="微信二维码"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class ShFloatWin extends DataEntity<ShFloatWin> {
	
	private static final long serialVersionUID = 1L;
	private String addr;		// 地址
	private String email;		// 邮箱
	private String wxNo;		// 微信号
	private String phone;		// 联系号码
	private String wxCode;		// 微信二维码
	
	public ShFloatWin() {
		this(null);
	}

	public ShFloatWin(String id){
		super(id);
	}
	
	@NotBlank(message="地址不能为空")
	@Length(min=0, max=100, message="地址长度不能超过 100 个字符")
	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}
	
	@NotBlank(message="邮箱不能为空")
	@Length(min=0, max=150, message="邮箱长度不能超过 150 个字符")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	@NotBlank(message="微信号不能为空")
	@Length(min=0, max=150, message="微信号长度不能超过 150 个字符")
	public String getWxNo() {
		return wxNo;
	}

	public void setWxNo(String wxNo) {
		this.wxNo = wxNo;
	}
	
	@NotBlank(message="联系号码不能为空")
	@Length(min=0, max=40, message="联系号码长度不能超过 40 个字符")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public String getWxCode() {
		return wxCode;
	}

	public void setWxCode(String wxCode) {
		this.wxCode = wxCode;
	}
	
}